import App from 'next/app'
import 'antd/dist/antd.css'
import Layout from '../components/Layout'


class MyApp extends App {
  static async getInitialProps({Component, ctx}) {
    let pageProps = {}
    Component.getInitialProps && (pageProps = await Component.getInitialProps(ctx))

    return {
      pageProps,
    }
  }

  render() {
    const {Component, pageProps} = this.props

    return <Layout><Component {...pageProps} /></Layout>
  }
}

export default MyApp
